package cn.gjculture.shopping.api.entity;

import lombok.Data;
import lombok.Getter;

/**
 * 优惠规则
 */
@Data
public class Discount {
    private String discountId;
    private String activityId;
    //优惠数量，代金券表示张数，积分表示送多少分
    private Integer number;
    private String scorePercent;
    private Integer discountType;
    private CashCoupon cashCouponTemplate;

    public enum DiscountType{
        CASH_COUPON(1),SCORE(2);
        @Getter
        private Integer value;
        DiscountType(int value){
            this.value=value;
        }
    }

}
